#ifndef     _BUTTON_H_
#define     _BUTTON_H_

#include <ti/devices/msp/msp.h>
#include <ti/driverlib/driverlib.h>
#include <ti/driverlib/m0p/dl_core.h>
#include "task.h"

struct keys
{
    bool single_flag;
    bool long_flag;
    bool double_flag;
    bool key_status;
    uint8_t click_status;
    int click_time;
    uint8_t double_status;
    int double_time;
};
 
extern struct keys key;

 void key_Proc(void);


#endif